package com.w2cx.selenium.operate;

import com.w2cx.selenium.base.DriverBase;
import com.w2cx.selenium.page.InformationReview;
import org.openqa.selenium.WebElement;

import java.util.List;

public class InformationReviewOperate {

    DriverBase driver;
    InformationReview ir;
    public InformationReviewOperate(DriverBase driver){
        this.driver = driver;
        ir = new InformationReview(driver);
    }

    //点击“内容审核”菜单
    public void clickContentReviewMenu(){
        ir.click(ir.getContentReviewMenu());
    }

    //点击“资讯审核”菜单
    public void clickInformationReviewMenu(){
        ir.click(ir.getInformationReviewMenu());
    }

    //点击第一条去审核
    public void clickToReviewBtn(){
        ir.click(ir.getToReviewLink());
    }

    //点击“审核”按钮
    public void clickReviewBtn(){
        ir.click(ir.getReviewBtn());
    }

    //获取第一条资讯id
    public WebElement getFirstInformaId(){
        return ir.getFirstInforId();
    }


    //获取元素列表
    public List<WebElement> getInformationList(){
        return  ir.getInformationList();
    }


}
